package com.qf.grant.controller;

import com.qf.grant.service.ITCouponService;
import com.qf.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ljc
 * @since 2023-03-10
 */
@RestController
@RequestMapping("/cou")
public class CouponController {

    @Autowired
    ITCouponService couponService;
    @RequestMapping("/creat")
    public ResultVo creatCoupon(Integer amount){

      return   couponService.creatCoupon(amount);

    }

    @RequestMapping("/putout")
    public ResultVo putout(){

        return couponService.putOut();
    }
}
